package com.che.libcommon.utils;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by wangduheng26 on 2018/3/14.
 * wangduheng26@gmail.com
 */

public class BothStr implements Parcelable{
    public String component1;
    public String component2;

    public BothStr(String component1, String component2) {
        this.component1 = component1;
        this.component2 = component2;
    }

    protected BothStr(Parcel in) {
        component1 = in.readString();
        component2 = in.readString();
    }

    public static final Creator<BothStr> CREATOR = new Creator<BothStr>() {
        @Override
        public BothStr createFromParcel(Parcel in) {
            return new BothStr(in);
        }

        @Override
        public BothStr[] newArray(int size) {
            return new BothStr[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(component1);
        dest.writeString(component2);
    }
}
